package com.game.astd.spirit;

import java.util.concurrent.TimeUnit;

public class SpiritMain
{

	public void startSpirit()
	{
		System.out.println("开始加载精灵文件");
		TaskManager.addTask(new AccountSyncTask(), 0, 3, TimeUnit.SECONDS);
//		TaskManager.addTaskAtFixedRate(new DinnerTask(), 0, 30, TimeUnit.MINUTES);
		TaskManager.addTaskAtFixedRate(new ImposeTask(), 0, 30, TimeUnit.SECONDS);
	}
	
	public static void main(String[] args)
	{
		new SpiritMain().startSpirit();
	}
	
}
